<?php if ($friends = $app->getMyFriends()) { ?>
    <?php $i=1; ?>
    <?php foreach ($friends as $friend) { ?>
        <li>
            <label>
                <div class="profile">
                    <div class="img">
                        <img data-original="<?php echo $app->getProfileImg($friend['id']); ?>" src="assets/img/gray.jpg">
                        <!--<img src="<?php echo $app->getProfileImg($friend['id']); ?>" /> -->
                    </div>
                    <div class="name">
                        <input type="checkbox" name="friend[]" value="<?php echo $friend['id']; ?>" <?php if($app->isTarget($friend['id'])) { ?> checked="checked"<?php } ?> />
                        <span><?php echo Helper::trimAt($friend['name']); ?></span>
                    </div>
                </div>
            </label>
        </li>
    <?php $i++; if($i > 9999) break; ?>
    <?php } ?>
<?php } else { ?>
    <li class="nothing">
        <label>
            <div class="profile">
                <div class="name">
                    <span><?php echo $app->__('Nadie :('); ?></span>
                </div>
            </div>
        </label>
    </li>
<?php } ?>           